/**
 * Created by elead on 2018/12/14.
 */

function setInput(placeholder,className,len,type){
    var oDivText='<div class="inputBox " style="border:1px solid #ccc;"><label style="color:#ccc;" for="male">'+placeholder+'</label> <input  autocomplete="off" maxlength="'+len+'" class="publicInputText '+className+'" type="'+type+'" name="sex" id="male" />';
return oDivText;
}
function focusOrBlur(box){
    $(box+" label").click(function(){
        $(box+" label").css({
            "display":"none"
        })
    })
    $(box+" .publicInputText").focus(function(){
        $(box+" label").css({
            "display":"none"
        })
    })
    $(box+" .publicInputText").blur(function(){
        if($(this).val()!=""){

        }else{
            $(box+" label").css({
                "display":"inline-block"
            })
        }
    })
}


function createTableHeader(dataArr){
        var ele="<table class='headerTable'><thead><tr>";
        for(var f in dataArr ){
            ele+="<th>"+dataArr[f]+"</th>"
        }
        ele+="</tr></thead></table>";
        if(dataArr.length>0){
            return ele;
        }
}